﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Collections.ObjectModel;
using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.WindowsPresentation;

namespace RZD_maps.Modules.Transport.Models
{
    public static class TransportUtil
    {
        public static ObservableCollection<TransportCategory> CreateTransport()
        {
            ObservableCollection<TransportCategory> list = new ObservableCollection<TransportCategory>();
            TransportCategory books = new TransportCategory("Состав 1");
            books.Id = 1;
            TransportCategory movies = new TransportCategory("Состав 2");
            movies.Id = 2;
            TransportCategory music = new TransportCategory("Состав 3");
            music.Id = 3;

            //root categories
            list.Add(books);
            list.Add(movies);
            list.Add(music);

            ////2nd level items on all categories
            //books.SubCategories.Add(new TransportCategory("Элемент1 ст1", books));
            //books.SubCategories.Add(new TransportCategory("Элемент2 ст1", books));
            //books.SubCategories.Add(new TransportCategory("Элемент3 ст1", books));

            //movies.SubCategories.Add(new TransportCategory("Элемент1 ст2", movies));
            //movies.SubCategories.Add(new TransportCategory("Элемент2 ст2", movies));
            //movies.SubCategories.Add(new TransportCategory("Элемент3 ст2", movies));
            //movies.SubCategories.Add(new TransportCategory("Элемент4 ст2", movies));

            //music.SubCategories.Add(new TransportCategory("Элемент1 ст3", music));
            //music.SubCategories.Add(new TransportCategory("Элемент2 ст3", music));
            //music.SubCategories.Add(new TransportCategory("Элемент3 ст3", music));
            //music.SubCategories.Add(new TransportCategory("Элемент4 ст3", music));

            return list;
        }
    }
}
